<%-- 
    Document   : index
    Created on : 22 Apr 10, 0:11:32
    Author     : Jiwandono
--%>

<% if(session.getAttribute("ichat.username") != null) { %>
    <jsp:forward page="list.jsp" />
<% } %>

<% if(session.getAttribute("ichat.usertype") == "ADMIN") { %>
    <jsp:forward page="admin.jsp" />
<% } %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login</title>
        <link rel="stylesheet" href="includes/css/resetter.css" type="text/css"/>
        <link rel="stylesheet" href="includes/css/ichat.css" type="text/css"/>
    </head>
    <body>
        <div id="wrap">
            <div id="top"></div>
            <div class="container">
                <div style="width: 100%"><img src="includes/img/logo.png" alt="ichat"/></div>
            </div>
            <div id="block" style="margin-top: 200px">
                    <form action="loginServlet" method="post">
                        <input type="text" name="login_username" value="username" onFocus="if(this.value=='username')this.value=''" onBlur="if(this.value=='')this.value='username'"/>
                        <input type="password" name="login_password" value="password" onFocus="if(this.value=='password')this.value=''" onBlur="if(this.value=='')this.value='password'" />
                        <button type="submit">Login</button>
                    </form>
                    belum punya akun? daftar <a href="registerServlet">disini</a>
                </div>
        </div>
        <div id="footer">
	<div class="container">
		<span class="highlight-color">Copyright &copy; 2010 Informatika ITB</span>
	</div>
        </div>
    </body>
</html>
